<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <script>
    (function () {
      if (!process.env.HOT) {
        const link = document.createElement('link');
        link.rel = 'stylesheet';
        link.href = '../dist/appPreferences.css';
        document.write(link.outerHTML);
      }
    }());
  </script>
</head>

<body>
  <div id="root"></div>
  <script>
    const script = document.createElement('script');
    script.src = (process.env.HOT) ? 'http://localhost:3000/app/appPreferences.bundle.js' : '../dist/appPreferences.bundle.js';
    document.head.appendChild(script);
  </script>
</body>

</html>
